from django.db import models
from django.contrib.auth.models import AbstractUser, Group, Permission
# Create your models here.

class Org(Group):
    pid = models.IntegerField(null=True)

class User(AbstractUser):
    # 手机号码
    phone = models.CharField(max_length=11, null=True)
    # 姓名
    name = models.CharField(max_length=16, null=True)

    # groups = models.ManyToManyField(Org, related_name='user_set')
